<ion-view view-title="配件发布">
	<ion-content>
      <div class="list">
      	 <li class="item item-input">
			<span class="input-label">
				配件组名称
			</span>
			<input type="text" placeholder="请输入配件组名称" ng-model="suitModel.name"/>
		</li>
		 <li class="item item-input">
			<span class="input-label">
				最小购买量
			</span>
			<input type="text" placeholder="请输入最小购买量" ng-model="suitModel.min_count"/>
		</li>
		 <li class="item item-input">
			<span class="input-label">
				最大购买量
			</span>
			<input type="text" placeholder="请输入最大购买量" ng-model="suitModel.max_count"/>
		</li>
		 <li class="item item-input-inset ">
			<span class="input-label">
				配件优惠
			</span>
			<input type="radio"  name="privilege" value="1" ng-model="suitModel.privilege_type" class="radio_size_zhang" id="discount"/><label for="discount">优惠折扣</label>
			<input type="radio"  name="privilege" value="2" ng-model="suitModel.privilege_type"  class="radio_size_zhang margin-left-10-my" id="money"/><label for="money">优惠金额</label>
		</li>
		 <li class="item item-input">
			<span class="input-label">
				优惠额度
			</span>
			<input type="text" placeholder="请输入优惠额度" ng-model="suitModel.privilege"/>
		</li>
		 <li class="item padding-0 item-borderless placeholder-icon font-small-my text-right margin-right-10-my">
			无优惠可不填，9折就填0.9，优惠100元就填100
		</li>
		<li class="item item-input">
				添加配件：
				<div class="input-value" ng-click="doSelectCustomType()">{{suitModel.suitGoods[num].name}}</div>
			<i class="icon ion-ios-plus-outline font-1rem-my positive" on-tap="continueAdd()"></i>&nbsp;
		 </li>
		 <!--循环显示已经选择的配件,track by $index解决数组中有重复的值报错问题-->
		 <li class="item padding" ng-repeat="suit in suitName track by $index">
		 	<span class="invisible">添加配件：</span>
		 		{{suit}}
			<i class="icon ion-ios-minus-outline font-1rem-my assertive right-zhang" on-tap="reduce($index)"></i>&nbsp;
		 </li>
      </div>
      
		<div class="padding">
	     	 <button class="button button-block button-assertive" on-tap="edit()">提交</button>
	    </div>

	</ion-content>
</ion-view>
